package com.xcroot.chapter03;

/**
 * Created by CRoot on 2017/9/20.
 */

class Person {
    private String Name;
    private int Birthday;

    public Person(String Name, int Birthday) {
        this.Name = Name;
        this.Birthday = Birthday;
    }

    public String getName() {
        return Name;
    }

    public int getBirthday() {
        return Birthday;
    }
}

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("李娜", 1982);
        Person p2 = new Person("王明", 1986);
        if (p1.getBirthday() < p2.getBirthday()) {
            System.out.println(p1.getName() + "比" + p2.getName() + "年龄大");
        }
    }
}
